package cn.lx;

import java.util.Vector;

/**
 * @author lixin
 * @Classname ConcreteAggregate
 * @Description TODO
 * @Date 2019/10/8 下午4:15
 */
public class ConcreteAggregate implements Aggregate {
    private Vector vector = new Vector();

    public void add(Object object) {
        this.vector.add(object);
    }

    public void remove(Object object) {
        this.remove(object);
    }

    public Iterator iterator() {
        return new Concreterator(this.vector);
    }
}
